package yt.kpool.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.king.base.adapter.ViewHolderAdapter;
import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.ArrayList;
import java.util.List;

import yt.kpool.MainActivity;
import yt.kpool.R;
import yt.kpool.bean.ChildAccountBean;
import yt.kpool.util.Util;


/**
 * 挖矿账户列表选择适配器 gridview
 * Created by Administrator on 2017/7/17.
 */

public class PersonGridviewAdapter extends ViewHolderRecyclerAdapter<ChildAccountBean.DataBean> {

    private List<Integer> selectedIdlist;//选中的id数组

    private List<Integer> colorlist;
    private List<ChildAccountBean.DataBean> listData;


    public PersonGridviewAdapter(Context context, List<ChildAccountBean.DataBean> listData,List<Integer> colorlist) {
        super(context, listData);
        this.listData=listData;
        this.colorlist=colorlist;
        selectedIdlist=new ArrayList<>();
    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return layoutInflater.inflate(R.layout.item_person_gridview_layout,null);
    }


    @Override
    public void bindViewDatas(ViewHolder holder, ChildAccountBean.DataBean dataBean, int position) {
               holder.setText(R.id.tv_name,dataBean.getChildAccountName());





    }






}
